import WindyEffect from './windEffect'
export default class Wind{
    _viewer:any
    windy:any
    constructor(viewer:any){
   this._viewer=viewer
    }
    create(){
        // if(this.windy){
        //     this.windy.destroy();
        // }
        const params = {
    
            speedRate: 5000,
            particlesNumber: 5000,
            maxAge: 120,
            frameRate: 10,
            color: '#ffffff',
            lineWidth: 2,
          };
          this.windy = new WindyEffect(this._viewer, params);
    }
    destory(){
        this.windy.destroy();
    }
}